<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>724便利店管理系统</title>
  <link type="text/css" rel="stylesheet" th:href="@{/css/style.css}" />
  <link type="text/css" rel="stylesheet" th:href="@{/css/public.css}" />
</head>
<body>
<div th:replace="~{common/head::head}"></div>
  <div class="right">
    <div class="location">
      <strong>当前位置:</strong>
      <span>入库记录管理页面</span>
    </div>
    <div class="search">
      <form method="get" th:action="@{sys/storageRecord/list}">
        <span>商品名称：</span>
        <input type="text"  name="goodsName"/>
        <span>供货商：</span>
              <select th:if="${supplierList != null}" name="supplierId">
               <option th:each="supplier:${supplierList}"  th:value="${supplier.id}"  th:text="${supplier.supName}"></option>
              </select>
        <span>付款状态：</span>
        <select name="payStatus">
          <option value="">--全部--</option>
          <option value="1">未付款</option>
          <option value="2" >已付款</option>
        </select>
        <input type="hidden" name="pageIndex" value="1"/>
        <input	value="查 询" type="submit" id="searchbutton">
        <a th:href="@{sys/storageRecord/toAdd}">添加</a>
      </form>
    </div>
    <!--账单表格 样式和供货商公用-->
    <table class="supplierTable" cellpadding="0" cellspacing="0">
      <tr class="firstTr">
        <th width="15%">入库编号</th>
        <th width="10%">商品名称</th>
        <th width="10%">金额</th>
        <th width="20%">供货商</th>
        <th width="10%">付款状态</th>
        <th width="10%">创建时间</th>
        <th width="25%">操作</th>
      </tr>

      <tr th:if="${storageRecordList!=null}" th:each="storageRecord:${storageRecordList}">
        <td>
          <span th:text="${storageRecord.srCode }"></span>
        </td>
        <td>
          <span th:text="${storageRecord.goodsName }"></span>
        </td>
        <td>
          <span th:text="${storageRecord.totalAmount}"></span>
        </td>
        <td>
<!--                    <span th:text="${storageRecord.supplier.supName}"></span>-->
        </td>
        <td>
          <span name="payStatus" th:if="${storageRecord.payStatus == 1}" th:text="未付款"></span>
          <span name="payStatus" th:if="${storageRecord.payStatus == 2}" th:text="已付款"></span>
        </td>
        <td>
          <!--					<span th:text="${storageRecord.createdTime}"></span>-->
        </td>
        <!--        <td>-->
        <!--          <span><a class="viewStorageRecord" href="javascript:;" storageRecordId=${storageRecord.id } StorageRecordcc=${storageRecord.srCode }><img src="${pageContext.request.contextPath }/statics/images/view.png" alt="查看" title="查看"/></a></span>-->
        <!--          <span><a class="modifyStorageRecord" href="javascript:;" storageRecordId=${storageRecord.id } StorageRecordcc=${storageRecord.srCode }><img src="${pageContext.request.contextPath }/statics/images/upd.png" alt="修改" title="修改"/></a></span>-->
        <!--          <span><a class="deleteStorageRecord" href="javascript:;" storageRecordId=${storageRecord.id } StorageRecordcc=${storageRecord.srCode }><img src="${pageContext.request.contextPath }/statics/images/del.png" alt="删除" title="删除"/></a></span>-->
        <!--        </td>-->
      </tr>

    </table>
    <!--  <input type="hidden" id="totalPageCount" value="${page.pageCount}"/>-->
    <!--  <c:import url="/WEB-INF/jsp/sysRole/rollpage.jsp">-->
    <!--    <c:param name="totalCount" value="${page.rowCount}"/>-->
    <!--    <c:param name="currentPageNo" value="${page.currentPage}"/>-->
    <!--    <c:param name="totalPageCount" value="${page.pageCount}"/>-->
    <!--  </c:import>-->
  </div>
<div th:replace="~{common/foot::foot}"></div>
  <!--点击删除按钮后弹出的页面-->
  <div class="zhezhao"></div>
  <div class="remove" id="removeBi">
    <div class="removerChid">
      <h2>提示</h2>
      <div class="removeMain">
        <p>确定删除该订单吗？</p>
        <a href="#" id="yes">是</a>
        <a href="#" id="no">否</a>
      </div>
    </div>
  </div>



<script type="text/javascript" th:src="@{/js/storageRecord/list.js}"></script>
</body>
</html>